package com.graduation.roombooking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.roombooking.pojo.UserAction;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhaoXinYi
 * @since 2022-04-30
 */
@Mapper
public interface UserActionMapper extends BaseMapper<UserAction> {

    //用户权限关联关系
    int addUserAction(UserAction userAction);

    //修改用户权限
    int updateUserAction( Long phone, String action);

    //组织管理员修改权限
    int updateOrgUserAction(String companyName,  Long phone,String action);
}
